﻿using System.Collections.Generic;

namespace ESoft.DataAccess.Models
{
    public class PageResult<T>
    {
        public IEnumerable<T> Items { get; set; }

        public int TotalCount { get; set; }

        public int PageCount { get; set; }

        public int CurrentPage { get; set; }

        public int PageSize { get; set; }

        public PageResult(IEnumerable<T> items, int totalCount)
        {
            Items = items;
            TotalCount = totalCount;
        }

        public PageResult()
        {
        }
    }
}